package com.itheima.app;

import com.itheima.service.BrandService;
import com.itheima.service.impl.BrandServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class IOCApp {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("application-config.xml");
        BrandService brandService = (BrandService) applicationContext.getBean("brandService");
        brandService.save();
    }
}
